package game.games.graphictest;

import game.Position;

import java.awt.Color;

public class Robot extends AbstractShape
{
    public Robot()
    {
        super(9,8);
    }
    
    @Override
    protected void setShape()
    {
        setCellSize(10);
        // body
        setPoints(new Position(2, 0), new Position(6, 5), Color.GREEN);
        // arms
        setPoints(new Position(0, 3), new Position(1, 3), Color.GREEN);
        setPoints(new Position(7, 3), new Position(8, 3), Color.GREEN);
        // legs
        setPoint(2, 6, Color.GREEN);
        setPoints(new Position(1, 7), new Position(2, 7), Color.GREEN);
        setPoint(6, 6, Color.GREEN);
        setPoints(new Position(6, 7), new Position(7, 7), Color.GREEN);
        // eyes
        setPoint(3, 1, Color.BLUE);
        addExclusivePoint(3, 1);
        setPoint(5, 1, Color.BLUE);
        addExclusivePoint(5, 1);
        // mouth
        setPoints(new Position(3, 3), new Position(5, 3), Color.WHITE);
        addExclusivePoints(new Position(3, 3), new Position(5, 3));
    }
}
